import request from "../index.js";

const echartAPI = {
  categoryGoodsCount: "/goods/category/count",
  categoryGoodsSale: "/goods/category/sale",
  categoryGoodsFavor: "/goods/category/favor",
  addressGoodsSale: "/goods/address/sale",
};

export function getCategoryGoodsCount() {
  return request.get({
    url: echartAPI.categoryGoodsCount,
  });
}

export function getCategoryGoodsSale() {
  return request.get({
    url: echartAPI.categoryGoodsSale,
  });
}

export function getCategoryGoodsFavor() {
  return request.get({
    url: echartAPI.categoryGoodsFavor,
  });
}

export function getCategoryAddressSale() {
  return request.get({
    url: echartAPI.addressGoodsSale,
  });
}
